
import LoginView from '@/views/LoginView.vue'

export default [
    {
        path: '/',
        redirect: '/login'
    },
    {
        name: "login",
        path: '/login',
        component: LoginView
    },
    {
        name: "home",
        path: '/home',
        component: () => import(/* webpackChunkName: "base" */ '../views/HomeVue.vue'),
        children: [
            {
                path: 'welcome',
                component: () => import(/* webpackChunkName: "base" */ '../views/HomePage/HelloPage.vue'),
            },
            {
                name: "users",
                path: 'users',
                component: () => import(/* webpackChunkName: "base" */ '../views/UserManagerPage/UserList.vue'),
            },
            {
                name: "roles",
                path: 'roles',
                component: () => import(/* webpackChunkName: "base" */ '../views/LimitManagerPage/RoleList.vue'),
            },
            {
                name: "rights",
                path: 'rights',
                component: () => import(/* webpackChunkName: "base" */ '../views/LimitManagerPage/LimitList.vue'),
            },
            {
                name: "goods",
                path: 'goods',
                component: () => import(/* webpackChunkName: "base" */ '../views/GoodsManagerPage/GoodsManage.vue'),
               
            },
           {
                name: "add",
                path: 'goods/add',
                component: () => import(/* webpackChunkName: "base" */ '../views/GoodsManagerPage/GoodsList.vue'),
            },
            {
                name: "edit",
                path: 'goods/edit/:gid?',
                component: () => import(/* webpackChunkName: "base" */ '../views/GoodsManagerPage/GoodsList.vue'),
            },
            {
                name: "params",
                path: 'params',
                component: () => import(/* webpackChunkName: "base" */ '../views/GoodsManagerPage/SortParams.vue'),
            },
            {
                name: "categories",
                path: 'categories',
                component: () => import(/* webpackChunkName: "base" */ '../views/GoodsManagerPage/GoodsSort.vue'),
            },
            {
                name: "orders",
                path: 'orders',
                component: () => import(/* webpackChunkName: "base" */ '../views/OrderManagerPage/OrderList.vue'),
            },
        ]
    },

    {
        path: '*',
        // redirect: '/login'
        component: () => import(/* webpackChunkName: "base" */ '../views/HomePage/NotFound.vue')
    },
]

//   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')